package com.ngc.mall.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 *
 * 中奖记录
 * @author: chenxiaolin
 * @date 2023/10/14 13:59
**/
@Data
@TableName("lottery_record")
public class LotteryRecordDomain {
    private Integer id;

    private Long userId;

    private Long itemId;

    private String userName;

    private String prizeName;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


    private LocalDateTime expireTime;

    /**
     * 奖品状态，0：未兑换 1：已兑换  2：已过期
     */
    private Integer status;

    private Long orderId;

    private Long lotteryId;

    /**
     * 奖品类型，
     */
    private Integer type;
}
